

            


            
using System;
using System.Collections.Generic;
using System.Web;
namespace DatabaseComponent
{
     public partial class PersonsRules
     {


         Rules _objRules = null;

         public Rules objRules
         {
             get
             {

                 if (_objRules == null)
                 {
                     RulesDB objRules = new RulesDB(ConnectionStrings.LMS);
                     List<Rules> lstRules = objRules.getRulesByID(RuleID);
                     if (lstRules.Count == 0)
                         return new Rules();

                     _objRules = lstRules[0];
                 }




                 return _objRules;
             }

         }

            //Write any additional methods or properties here 
            //Don't modify any genrated classes
     }
}
